Conversation
MrCyjaneK
commented
Sep 24, 2021
|
|
||
| router.Mount("/api/v1", r.apiRouter()) | ||
|
|
||
| router.Get("/archive/{id}/", build.HandleArchive(r.Jobs, r.Config)) |
Contributor
Author
There was a problem hiding this comment.
I need extra help with this line - it doesn't work in a way in which I'd expect it to work... I get a 404 instead of the response from function, when requesting /archive/{id}/file.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should close #485, which I've opened a couple of months ago.
Usage is simple, just add:
to your
.abstruse.ymland files will be saved in~/data/archive/{job id}.Currently there is no way to serve the files with the api (code is written, it just doesn't work, probably an issue with chi?).
TODO:
/archive/{repo name}/{branch/pull request id}to/archive/{job id}