Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Include mime type for uploading GPX files
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyst committed Nov 30, 2022
1 parent 3911995 commit 347d541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const request = async (options) => {
}
};

export default function registerEndpoint(router, { services, getSchema }) {
export default function registerEndpoint(router, { services, getSchema, database }) {
const { ItemsService, FilesService, AuthenticationService } = services;

Expand Down Expand Up @@ -157,6 +156,7 @@ export default function registerEndpoint(router, { services, getSchema, database
{
title: data.name,
filename_download: `${activityId}.gpx`,
type: "application/gpx+xml",
storage: "local",
},
fileKey
Expand Down

0 comments on commit 347d541

Please sign in to comment.