mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-10-06 15:09:59 +00:00
Move some pastie fetching logic into Storage.
I'm implementing an "edit" page, so I also need to retrieve a pastie from there and I want to minimize code duplication.
This commit is contained in:
parent
459f9682e0
commit
c86df2de07
5 changed files with 64 additions and 37 deletions
|
@ -52,7 +52,7 @@ namespace kamokan {
|
|||
const std::string& parRemoteIP
|
||||
) const override;
|
||||
|
||||
kamokan_virtual_testing Storage::RetrievedPastie retrieve_pastie (const boost::string_view& parToken) const override;
|
||||
kamokan_virtual_testing Storage::RetrievedPastie retrieve_pastie (const boost::string_view& parToken, uint32_t parMaxTokenLen) const override;
|
||||
|
||||
const std::vector<SubmittedPastie>& submitted_pasties() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue