@codecademy/codebytes 1.0.58-0 → 1.0.58-alpha.5c17fc66e4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const postSnippet = async (data, snippetsBaseUrl) => {
|
|
2
|
-
const snippetsEndpoint = "https://".concat(snippetsBaseUrl, "/
|
|
2
|
+
const snippetsEndpoint = "https://".concat(snippetsBaseUrl, "/snippers");
|
|
3
3
|
const response = await fetch(snippetsEndpoint, {
|
|
4
4
|
method: 'POST',
|
|
5
5
|
body: JSON.stringify(data)
|
package/package.json
CHANGED