Skip to content

Commit

Permalink
#38: a little project restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
espen42 committed Aug 31, 2021
1 parent 4d8a025 commit e5920a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 53 deletions.
36 changes: 0 additions & 36 deletions hmdb/src/main/resources/lib/headless/guillotine/schema/schema.es6

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// this type is purposefully naive. Please make sure to update this with a more
// accurate model before using it.
type Context = {
params: { draftrouter: string[] };
params: { mainrouter: string[] };
};

// this function also needs some serious refactoring, but for a quick and dirty
// proof of concept it does the job.
export const getServerSideProps = async ({ params }: Context) => {
const path = "/" + params.draftrouter.join("/");
export const getServerSideProps = async ( { params }: Context) => {
const path = "/" + params.mainrouter.join("/");

const fallback = { displayName: "N/A", _path: "None" };
const content = path
Expand Down

0 comments on commit e5920a1

Please sign in to comment.